home *** CD-ROM | disk | FTP | other *** search
- global away, tzLoc, tzDest, oldLoc, smallnil
-
- on timezoneInit
- set oldLoc to 0
- set away to 0
- set tzLoc to 33
- set tzDest to 33
- end
-
- on tzDisplay
- set the castNum of sprite 17 to the number of cast "r nil" + not away
- set the castNum of sprite 16 to the number of cast "square nil" + away
- if away then
- tzClick(tzDest)
- else
- tzClick(tzLoc)
- end if
- end
-
- on tzoffset
- gettz(tzLoc)
- set x to the result
- gettz(tzDest)
- return the result - x
- end
-
- on tzClick loc
- if oldLoc then
- set the blend of sprite oldLoc to 100
- end if
- set oldLoc to loc
- set the blend of sprite oldLoc to 50
- gettz(loc)
- set tz to the result
- set tzs to the number of cast "minus" + (tz > 0)
- if tz = 0 then
- set tzs to the number of cast "alarmoff"
- end if
- set the castNum of sprite 1 to tzs
- donum(2, smallnil, 1, abs(tz))
- updateStage()
- end
-
- on gettz loc
- return ((loc + 2) mod 24) - 11
- end
-